package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2020-10-23
 */
@TableName("sys_dict")
@ApiModel(value="SysDict对象", description="")
public class SysDict extends Model<SysDict> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "字典类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "字典键值")
    @TableField("k")
    private String k;

    @ApiModelProperty(value = "字典标签")
    @TableField("val")
    private String val;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime",fill= FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "删除标记")
    @TableField(value = "delFlag",fill = FieldFill.INSERT)
    private String delFlag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getK() {
        return k;
    }

    public void setK(String k) {
        this.k = k;
    }
    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysDict{" +
            "id=" + id +
            ", type=" + type +
            ", k=" + k +
            ", val=" + val +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", delFlag=" + delFlag +
        "}";
    }
}
